Autocorrect Rubocop offenses in OP components - #480
Conversation
|
There was a problem hiding this comment.
Pull request overview
This pull request applies RuboCop autocorrections to OpenProject-specific Primer ViewComponents, focusing on small style/readability changes while preserving behavior.
Changes:
- Normalize whitespace/argument formatting in
SubHeader. - Prefer more idiomatic collection predicates (
one?/many?) and simplify hash assignment. - Remove redundant inline RuboCop disable directives where the cop is disabled globally.
Reviewed changes
Copilot reviewed 5 out of 6 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| app/components/primer/open_project/sub_header.rb | Whitespace/formatting fixes for hash literals and argument lists. |
| app/components/primer/open_project/pagination.rb | Simplifies setting role in props from a merge! block to direct assignment. |
| app/components/primer/open_project/page_header.rb | Uses actions.many? instead of actions.count > 1 for mobile menu predicate. |
| app/components/primer/open_project/inline_message.rb | Removes redundant Lint/MissingSuper disable comment (cop disabled globally). |
| app/components/primer/open_project/flex_layout.rb | Replaces manual counting with one?/many? predicates for slot usage validation. |
| app/components/primer/open_project/fieldset.rb | Removes redundant Lint/MissingSuper disable comments (cop disabled globally). |
c526f2f to
e0924a2
Compare
|
a4fdd74 to
368610a
Compare
dcb1097 to
3584e11
Compare
What are you trying to accomplish?
Autocorrects Rubocop offenses in OP components
Merge checklist